package com.lucy.flow.utils;

import lombok.extern.slf4j.Slf4j;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.springframework.context.annotation.Bean;

/**
 * @author kindear
 * xml 工具
 */
@Slf4j
public class XmlUtil {
    
    public static Document string2Document(String text) throws DocumentException {
        return DocumentHelper.parseText(text);
    }
}
